home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
PenDialog.h
< prev
next >
Wrap
Text File
|
1997-08-14
|
2KB
|
72 lines
/*
* File: PenDialog.h
* Function: A dialog that allows the user to edit an SPen.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <1> 5/04/97 JDJ Created
*/
#pragma once
#include <ZDialogBox.h>
#include <ZTextBox.h>
// ===================================================================================
// class CPenDialog
// ===================================================================================
class CPenDialog : public TDialogBox, public MListener<TTextBox*> {
typedef TDialogBox Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CPenDialog();
static bool Pose(const string& penName, const SPen& oldPen, SPen* newPen);
static MReanimatable* Create(MReanimatable* parent);
protected:
CPenDialog();
//-----------------------------------
// Inherited API
//
public:
virtual bool HandleMouseDown(const TMouseEvent& event);
virtual bool HandleContextMenu(const TMouseEvent& event);
protected:
virtual void OnReanimated();
virtual void OnBroadcast(const SControlMessage& mesg);
virtual void OnBroadcast(TTextBox* const& mesg);
virtual bool OnMenuCommand(const MenuCommand& command);
//-----------------------------------
// Internal API
//
protected:
void SetData(const SPen& traits);
SPen GetData() const;
//-----------------------------------
// Member data
//
protected:
SPen mOldInfo;
};